/*
 * Sesame Inc.
 * Copyright (c) 2009 All Rights Reserved.
 */
package com.sesame.dao;

import java.util.List;

import com.sesame.domain.Album;
import com.sesame.toolkit.Page;

/**
 * @author voidman
 * 
 */
public interface AlbumDAO {
    public List<Album> getAllAlbum();

    public List<Album> getAllAlbum(Page page);

    public Album getAlbumById(Integer id);

    public List<Album> getAlbumByUserId(Page page);

    public List<Album> getAlbumByUserId(Integer userId);

    public List<Album> getTopAlbumByUserId(Integer userId);

    public List<Album> getTopAlbum();

    public Integer getAlbumByTitleAndUserId(Album album);

    public void addAlbum(Album Album);

    public void deleteAlbumById(Integer id);

    public void updateAlbum(Album Album);

    public void updateCover(Album Album);

    public Integer getAlbumCount(Integer userId);

    public Integer getAllAlbumCount();

    public void updateVisitAmount(Integer id);

}